From 7d9cf87a0448af05e658064f987455aa3eceb50f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 3 Jul 2008 18:09:04 +0000 Subject: [PATCH] Set properties in the order in which they are specified in the xml file. * gtk/gtkbuilderparser.c (parse_custom): Set properties in the order in which they are specified in the xml file. svn path=/trunk/; revision=20749 --- ChangeLog | 7 +++++++ gtk/gtkbuilderparser.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index b734a1d485..80289f9999 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-03 Matthias Clasen + + Bug 540915 – GtkBuilder sets properties in reverse order + + * gtk/gtkbuilderparser.c (parse_custom): Set properties in the order + in which they are specified in the xml file. + 2008-07-03 Matthias Clasen Bug 539944 – Add GtkScaleButton API so struct fields can be marked as diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index 76e79cb3c1..9e073a426d 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -713,6 +713,7 @@ parse_custom (GMarkupParseContext *context, ObjectInfo* object_info = (ObjectInfo*)parent_info; if (!object_info->object) { + object_info->properties = g_slist_reverse (object_info->properties); object_info->object = _gtk_builder_construct (data->builder, object_info, error); -- 2.30.2